﻿<html dir="LTR"><head><META http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5"><title>FTPControlSocket.ValidateReply Method (FTPReply, String)</title><xml></xml><link rel="stylesheet" type="text/css" href="MSDN.css"></head><body id="bodyID" class="dtBODY"><div id="nsbanner"><div id="bannerrow1"><table class="bannerparthead" cellspacing="0"><tr id="hdr"><td class="runninghead">An NDoc Documented Class Library</td><td class="product"></td></tr></table></div><div id="TitleRow"><h1 class="dtH1">FTPControlSocket.ValidateReply Method (FTPReply, String)</h1></div></div><div id="nstext"><p>  Validate the response the host has supplied against the
            expected reply. If we get an unexpected reply we throw an
            exception, setting the message to that returned by the
            FTP server
            
            </p><div class="syntax">public virtual <a href="EnterpriseDT.Net.Ftp.FTPReply.html">FTPReply</a> ValidateReply(<br>   <a href="EnterpriseDT.Net.Ftp.FTPReply.html">FTPReply</a> <i>reply</i>,<br>   <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemStringClassTopic.htm">string</a> <i>expectedReplyCode</i><br>);</div><h4 class="dtH4">Parameters</h4><dl><dt><i>reply</i></dt><dd>              reply object
            </dd><dt><i>expectedReplyCode</i></dt><dd>  expected reply
            </dd></dl><h4 class="dtH4">Return Value</h4><p>  reply object
            
            </p><h4 class="dtH4">See Also</h4><p><a href="EnterpriseDT.Net.Ftp.FTPControlSocket.html">FTPControlSocket Class</a> | <a href="EnterpriseDT.Net.Ftp.html">EnterpriseDT.Net.Ftp Namespace</a> | <a href="EnterpriseDT.Net.Ftp.FTPControlSocket.ValidateReply_overloads.html">FTPControlSocket.ValidateReply Overload List</a></p><object type="application/x-oleobject" classid="clsid:1e2a7bd0-dab9-11d0-b93a-00c04fc99f9e" viewastext="true" style="display: none;"><param name="Keyword" value="ValidateReply method"><param name="Keyword" value="ValidateReply method, FTPControlSocket class"><param name="Keyword" value="FTPControlSocket.ValidateReply method"></object></div></body></html>